﻿using BCCommon.Extensions;
using BCCommon.OAEnums;
using BCDto.OA.TeamWorks.TaskRejectRecord;
using System;
using System.Collections.Generic;

namespace BCDto.OA.TeamWorks.TaskRecord
{
    /// <summary>
    /// OA任务审批信息
    /// </summary>
    public class TaskRecordApproverViewDto
    {
        /// <summary>
        /// 任务记录编号
        /// </summary>
        public string TaskRecordNo { get; set; }
        /// <summary>
        /// 工作流活动实例Id
        /// </summary>
        public long WorkflowActivityInstanceId { get; set; }
        /// <summary>
        /// 当前步骤
        /// </summary>
        public int CurrentlyStep { get; set; }

        /// <summary>
        /// 最终审批人
        /// </summary>
        public string LastApproverName { get; set; }
        /// <summary>
        /// 最终审批人
        /// </summary>
        public long? LastApproverId { get; set; }
        /// <summary>
        /// 最终审批时间
        /// </summary>
        public DateTime? LastApproverTime { get; set; }
        /// <summary>
        /// 最终审批状态 
        /// </summary>
        public OATaskHandleStatus LastApproverStatus { get; set; }
        /// <summary>
        /// 最终审批状态 
        /// </summary>
        public string LastApproverStatusStr => this.LastApproverStatus.GetDescriptionString();
        /// <summary>
        /// 审批记录
        /// </summary>
        public List<TaskRejectRecordDto> RejectList { get; set; } = new List<TaskRejectRecordDto>();
    }
}
